package com.metroinfo.kernel;

import com.metroinfo.infrastructure.value.BusLastAppearanceValue;
import com.metroinfo.kernel.interfaces.DistanceCalc;

public class StandardCalculator implements DistanceCalc {

	@Override
	public int calculate(Object o1, Object o2) {
		return (getTimeFromNow(((BusLastAppearanceValue)o1).getTime())+((Integer)o2).intValue())/2;
	}
	
	private int getTimeFromNow(Integer vreme)
	{
		return vreme;
	}

}
